import axios from 'axios';
var ajax = {}
const instance = axios.create({
  baseURL: 'http://m.qihaoqihao.net/2/2450/',
  timeout: 3000,
  headers: { 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8' }
});

ajax.post = async (str) => {
  instance.post(str).then(res => {
    console.log('--->' + res)
  }).catch(err => {
    console.log('--->' + err)
  })
}

export default ajax
